<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>收藏页面</title>
    <link rel="stylesheet" href="css/font-awesome.css">
    <link rel="stylesheet" href="css/bootstrap.css">
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        a {
            text-decoration: none;
        }

        ul li {
            list-style: none;
        }


        #textword {
            width: 250px;
            height: 30px;
        }

        #textsearch {
            width: 50px;
            height: 35px;
            border: 1px solid #ccc;
            background: url(images/serach.jpg);
        }

        #zhuanhuan {
            width: 60%;
            height: 50px;
            margin: 0 auto;
            line-height: 50px;

        }

        #zhuanhuan1,
        #zhuanhuan2,
        #zhuanhuan3 {
            float: left;
        }

        #zhuanhuan button {
            margin-left: 40px;
            width: 100px;
            height: 50px;
            background-color: rgb(122, 138, 101);
            ;
        }

        #zhuanhuan button :hover {
            color: rgb(102, 230, 235);
        }

        #container,
        #container1,
        #container2 {
            width: 60%;
            height: 1150px;
            min-width: 900px;
            margin: 0 auto;

        }

        #container1,
        #container2 {
            display: none;
        }

        #shoucang,
        #shoucang3,
        #shoucang6 {
            width: 60%;
            height: 350px;
            min-width: 900px;
            border: 1px solid #ccc;
            margin: 0 auto;
            margin-top: 20px;
            border-radius: 30px;
        }

        #shoucang1,
        #shoucang4,
        #shoucang7 {
            width: 900px;
            height: 240px;
        }

        #shoucang1 img,
        #shoucang4 img,
        #shoucang7 img {
            width: 220px;
            height: 220px;
            float: left;
            margin-left: 60px;
            border-radius: 20px;
            margin-top: 10px;

        }

        #shoucang0 {
            width: 898px;
            height: 50px;
            border-radius: 20px 20px 0 0;
            background: linear-gradient(45deg, rgb(160, 191, 124), rgb(255, 255, 255)) fixed;
            line-height: 50px;
            font-size: 22px;
            padding-left: 40px;
        }
        #shoucang2,
        #shoucang5,
        #shoucang8 {
            width: 150px;
            height: 30px;
            float: right;
        }

        #shoucang8 a,
        button {
            font-size: 20px;
            background-color: rgb(160, 190, 117);
            color: white;

        }

        #updown {
            width: 500px;
            display: none;
        }

        #up {
            list-style: none;
            margin-left: 80px;
        }

        #up dd {
            width: 100px;
            height: 50px;
            line-height: 50px;
            background-color: rgba(230, 230, 230, 0.6);
            font-size: 14px;
            position: relative;
        }

        #up dd a {
            color: grey;
        }

        /* // 导航栏 */
        a {
            text-decoration: none
        }

        html,
        body {
            height: 100%;
        }

        body {
            background: url('../images/bg.jpg') 50% / cover no-repeat;
        }

        .menu-wrap {
            position: fixed;
            left: 0;
            top: 0;
            bottom: 0;
            width: 55px;
            background-color: #f5f5f5;
            box-shadow: 1px 0 15px rgba(0, 0, 0, 0.07);
            overflow: hidden;
        }

        .menu-wrap:hover {
            width: 250px;
        }

        .menu {
            position: absolute;
            left: 0;
            top: 80px;
            bottom: 80px;
            width: 250px;
            overflow-y: auto;
            margin-top: 80px;
        }

        .menu li {
            height: 42px;
            line-height: 42px;

        }

        .menu li:hover {
            background-color: rgb(160, 190, 117);
        }

        .menu li:hover a {
            color: #fff;
        }

        .meun a {
            display: block;
            columns: #8a8a8a;
            border-top: 1px solid #e9e9e9;
        }

        .menu i {
            display: inline-block;
            width: 55px;
            text-align: center;
            font-size: 18px;
        }

        .menu span {
            font-size: 14px;
        }


        /* 侧边头像 */
        #headPic {
            width: 80px;
            height: 80px;
            border: 1px solid #ccc;
            border-radius: 75px;
            margin-left: 80px;
            position: relative;
            overflow: hidden;
            top: 50px;
        }

        #headPicimg {
            width: 80px;
            height: 80px;
        }

        #headPic:hover #mask {
            display: block;
        }

        #mask {
            width: 150px;
            height: 150px;
            background-color: rgba(0, 0, 0, 0.5);
            position: absolute;
            left: 0;
            top: 0;
            display: none;
        }

        #innerImg {
            position: absolute;
            left: 25%;
            top: 25%;
            transform: translate(-50%, -50%);
            /*适用于不清楚自己的尺寸情况*/
        }
    </style>
    <script src="js/jquery-3.4.1.min.js"></script>
    <script>
        window.onload = function () {
            document.querySelector('#headPic').onclick = function () {
                document.querySelector('#headPic input').click()     //模拟表单元素被单击
            }
        }
        function changeHeadPic() {
            //1.获取图片文件
            var fileHead = document.querySelector('#headPic input').files[0]
            //2.文件读取图片
            var fread = new FileReader()
            fread.onload = function (e) {
                //3.把图片显示在页面中
                document.querySelector('#headPic>img').src = e.target.result
            }
            fread.readAsDataURL(fileHead)
        }


        //分享，收藏，老人
        $(function () {
            $('#zhuanhuan1').click(function () {
                $('#container').css('display', 'block')
                $('#container1').css('display', 'none')
                $('#container2').css('display', 'none')
            })
            $('#zhuanhuan2').click(function () {
                $('#container').css('display', 'none')
                $('#container1').css('display', 'block')
                $('#container2').css('display', 'none')
            })
            $('#zhuanhuan3').click(function () {
                $('#container').css('display', 'none')
                $('#container2').css('display', 'block')
                $('#container1').css('display', 'none')
            })
        })


    </script>
</head>

<body>
    <!-- //套餐 -->
    <div id="zhuanhuan">
        <div id="zhuanhuan1"><button> <i class="fa fa-home fa-lg">套餐</i></button></div>
        <div id="zhuanhuan2"><button> <i class="fa fa-heart-o fa-lg">收藏</i></button></div>
        <div id="zhuanhuan3"><button> <i class="fa fa-home fa-lg">套餐</i></button></div>
    </div>

    <div id="container">
        <div id="shoucang">
                <div id="shoucang0" class="fa fa-user fa-lg">xxx于2019-1-2发布新菜品 </div>
                <div id="shoucang1">
                    <img src="images/qzly.jpg" alt="">
                    <img src="images/hpqj.jpg" alt="">
                    <img src="images/nrlbt.jpg" alt="">
                </div>
                <div id="shoucang2">
                    <a href="top4.html"> <button>详情</button></a>
                    <button>删除</button>
                </div>
        </div>
        <div id="shoucang3">
            <div id="shoucang0" class="fa fa-user fa-lg">xxx于2019-1-2发布新菜品 </div>
            <div id="shoucang4">
                <img src="images/meetmenu-LB1.jpg" alt="">
                <img src="images/meetmenu-LB2.jpg" alt="">
                <img src="images/meetmenu-LB3.jpg" alt="">
            </div>
            <div id="shoucang5">
                <a href="top2.html"> <button>详情</button></a>
                <button>删除</button>
            </div>
        </div>
        <div id="shoucang6">
            <div id="shoucang0" class="fa fa-user fa-lg">xxx于2019-1-2发布新菜品 </div>
            <div id="shoucang7">
                <img src="images/meetmenu-LB5.jpg" alt="">
                <img src="images/meetmenu-LB6.jpg" alt="">
                <img src="images/meetmenu-LB7.jpg" alt="">
            </div>
            <div id="shoucang8">
                <a href="top2.html"><button>详情</button></a>
                <button>删除</button>
            </div>
        </div>
    </div>
    <!-- //老人 -->
    <div id="container1">
        <div id="shoucang">
            <div id="shoucang0" class="fa fa-user fa-lg">xxx于2019-1-2发布新菜品 </div>
            <div id="shoucang1">
                <img src="images/nav2top1.jpg" alt="">
                <img src="images/nav2top2.jpg" alt="">
                <img src="images/nav2top3.jpg" alt="">
            </div>
            <div id="shoucang2">
                <a href="top4.html"><button>详情</button></a>
                <button>删除</button>
            </div>
        </div>
        <div id="shoucang3">
            <div id="shoucang0" class="fa fa-user fa-lg">xxx于2019-1-2发布新菜品 </div>
            <div id="shoucang4">
                <img src="images/nav2top4.jpg" alt="">
                <img src="images/nav2top5.jpg" alt="">
                <img src="images/nrlbt.jpg" alt="">
            </div>
            <div id="shoucang5">
                <a href="top2.html"> <button>详情</button></a>
                <button>删除</button>
            </div>
        </div>
        <div id="shoucang6">
            <div id="shoucang0" class="fa fa-user fa-lg">xxx于2019-1-2发布新菜品 </div>
            <div id="shoucang7">
                <img src="images/meetmenu-LB5.jpg" alt="">
                <img src="images/meetmenu-LB6.jpg" alt="">
                <img src="images/meetmenu-LB7.jpg" alt="">
            </div>
            <div id="shoucang8">
                <a href="top2.html"><button>详情</button></a>
                <button>删除</button>
            </div>
        </div>
    </div>
    <!-- //收藏 -->
    <div id="container2">
        <div id="shoucang">
            <div id="shoucang0" class="fa fa-user fa-lg">xxx于2019-4-2发布新菜品 </div>
            <div id="shoucang1">
                <img src="images/meetmenu-LB5.jpg" alt="">
                <img src="images/meetmenu-LB6.jpg" alt="">
                <img src="images/meetmenu-LB7.jpg" alt="">
            </div>
            <div id="shoucang2">
                <a href="top4.html"><button>详情</button></a>
                <button>删除</button>
            </div>
        </div>
        <div id="shoucang3">
            <div id="shoucang0" class="fa fa-user fa-lg">xxx于2019-11-12发布新菜品 </div>
            <div id="shoucang4">
                <img src="images/meetmenu-LB1.jpg" alt="">
                <img src="images/meetmenu-LB2.jpg" alt="">
                <img src="images/meetmenu-LB3.jpg" alt="">
            </div>
            <div id="shoucang5">
                <a href="top2.html"> <button>详情</button></a>
                <button>删除</button>
            </div>
        </div>
        <div id="shoucang6">
            <div id="shoucang0">xxx于2019-1-2发布新菜品 </div>
            <div id="shoucang7">
                <img src="images/meetmenu-LB5.jpg" alt="">
                <img src="images/meetmenu-LB6.jpg" alt="">
                <img src="images/meetmenu-LB7.jpg" alt="">
            </div>
            <div id="shoucang8">
                <a href="top2.html"><button>详情</button></a>
                <button>删除</button>
            </div>
        </div>
    </div>
    <!-- //侧边导航栏 -->
    <nav class="menu-wrap">
        <div id="headPic">
            <img id="headPicimg" src="images/icon_shangjie.gif" alt="">
            <div id="mask">
                <img id="innerImg"
                    src=""
                    alt="">
            </div>
            <form action="#">
                <input type="file" name="" id="" accept="image/jpg" onchange="changeHeadPic()" style="display:none">
            </form>
        </div>


        <div class="menu">
            <ul>

                <li>
                    <a href="shouye.html">
                        <i class="fa fa-home fa-lg"></i>
                        <span class="nav-text">首页</span>
                    </a>
                </li>
                <li>
                    <a href="edit.html">
                        <i class="fa fa-user fa-lg"></i>
                        <span class="nav-text">编辑资料</span>
                    </a>
                </li>
                <li>
                    <a href="sharemenu.html">
                        <i class="fa fa-user fa-lg"></i>
                        <span class="nav-text">上传菜谱</span>
                    </a>
                </li>
                <li>
                    <a href="personal.html">
                        <i class="fa fa-envelope-o fa-lg"></i>
                        <span class="nav-text">已发布的内容</span>
                    </a>
                </li>
                <li>
                    <a href="shoucang.html">
                        <i class="fa fa-heart-o fa-lg"></i>
                        <span class="nav-text">收藏</span>
                    </a>
                </li>
                <li>
                    <a href="integral.html">
                        <i class="fa fa-shopping-bag fa-lg"></i>
                        <span class="nav-text">积分兑换</span>
                    </a>
                </li>
            </ul>
        </div>
    </nav>


</body>

</html>